package com.u.social.article.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.u.social.article.entity.ArticleTopics;
import com.u.social.article.mapper.ArticleTopicsMapper;
import com.u.social.article.service.IArticleTopicsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Alex Wu
 * @since 2025-01-23
 */
@Service
public class ArticleTopicsServiceImpl extends ServiceImpl<ArticleTopicsMapper, ArticleTopics> implements IArticleTopicsService {

    @Override
    public void removeByArticleId(Long articleId) {
        this.remove(new QueryWrapper<ArticleTopics>().eq("article_id", articleId));
    }
}
